<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
    protected function _initRouters()
    {
        $controller = Zend_Controller_Front::getInstance();
        $router = $controller->getRouter();

        $router->addRoute('home', new Zend_Controller_Router_Route('/:page',
            array('module' => 'default',
                'controller' => 'index',
                'action' => 'index',
                'page' => 1,
                'fetch' => 'index'
            )));

        //ARIA77
        $router->addRoute('aria77', new Zend_Controller_Router_Route('aria77/',
            array('module' => 'admin',
                'controller' => 'index',
                'action' => 'index'
            )));

        //ARIA77/CATEGORY
        $router->addRoute('categoryControl', new Zend_Controller_Router_Route('aria77/categoryControl/:page',
            array('module' => 'admin',
                'controller' => 'categories',
                'action' => 'index',
                'page' => 1
            )));

        $router->addRoute('addCategory', new Zend_Controller_Router_Route('aria77/addCategory/',
            array('module' => 'admin',
                  'controller' => 'categories',
                  'action' => 'add-category'
            )));

        $router->addRoute('editCategory', new Zend_Controller_Router_Route('aria77/editCategory/:id',
            array('module' => 'admin',
                'controller' => 'categories',
                'action' => 'edit-category')));

        $router->addRoute('deleteCategory', new Zend_Controller_Router_Route('aria77/deleteCategory/:id',
            array('module' => 'admin',
                'controller' => 'categories',
                'action' => 'delete-category')));

        $controller->setRouter($router);

    }

}

